﻿using SqlSugar;
using System;

namespace Raffles.OA.Data
{
    /// <summary>
    /// 菜单类
    /// </summary>
    [SugarTable("Sys_Menu")]
    public class Menu : BaseEntity
    {
        /// <summary>
        /// 父菜单
        /// </summary>
        public int ParentId { get; set; }
        /// <summary>
        /// 菜单类型
        /// </summary>
        public int Type { get; set; } 
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 权限标识
        /// </summary>
        public string Authorize { get; set; }
        /// <summary>
        /// 菜单地址
        /// </summary>
        public string UrlAddress { get; set; }
        /// <summary>
        /// 菜单图标
        /// </summary>
        public string Icon { get; set; }
        /// <summary>
        /// 显示顺序
        /// </summary>
        public int DisplayOrder { get; set; } = 99; 
        /// <summary>
        /// 启用状态
        /// </summary>
        public bool EnabledMark { get; set; } = true;
        /// <summary>
        /// 删除状态
        /// </summary>
        public bool DeletedMark { get; set; } = false;
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreatedOn { get; set; } = DateTime.Now;
        /// <summary>
        /// 创建人员
        /// </summary>
        public int? CreatedBy { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdatedOn { get; set; }
        /// <summary>
        /// 更新人员
        /// </summary>
        public int? UpdatedBy { get; set; }
    }
}
